<!--
 * @Author: your name
 * @Date: 2022-01-06 19:26:40
 * @LastEditTime: 2022-01-08 11:22:46
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \vue_test\src\components\Home.vue
-->
<template>
  <div>
    <h2>Home组件内容</h2>
    <div>
      <ul class="nav nav-tabs">
        <li>
          <router-link class="list-group-item" active-class="active" to="/home/news">News</router-link>
        </li>
        <li>
          <router-link class="list-group-item" active-class="active" to="/home/message">Message</router-link>
        </li>
      </ul>
      <ul>
        <router-view></router-view>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  name: "Home",
  /*  beforeDestroy() {
    console.log("Home组件即将被销毁了！");
  }, */
  /*  mounted() {
    console.log("Home组件挂载完毕！", this);
    window.homeRoute = this.$route;
    window.homeRouter = this.$router;
  }, */
};
</script>
